package com.kaikeba.service;
import com.kaikeba.dao.BaseADminDao;
import com.kaikeba.dao.impl.AdminDaoMysql;
import java.util.Date;

/**
 * @Author: 平川
 * @Description:
 * @Date Created in 2021-07-28 17:48
 * @Modified By:
 */
public class AdminService {
    private static BaseADminDao dao = new AdminDaoMysql();

    /*
     * 根据用户名，更新登录时间，与ip
     * */
    static void updateLoginTime(String username, Date date, String ip) {
        dao.updateLoginTime(username, date, ip);
    }
    /*
     * 管理员根据账号密码登录
     * */
    static boolean login(String username,String password) {

        return dao.login(username, password);
    }
}
